home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
1994.12.gz
/
1994.12
/
000045_tim@maths.tcd.ie_Thu Dec 8 20:31:47 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-12-30
|
4KB
Received: from salmon.maths.tcd.ie by cs.umb.edu with SMTP id AA26644
(5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 8 Dec 1994 20:31:47 -0500
Received: from hamilton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP
id aa23553; 8 Dec 94 14:44 GMT
Subject: Re: debugging search paths in kpathsea
To: Dan Karron <dan@tesla.psych.nyu.edu>
Date: Thu, 8 Dec 1994 14:44:20 (GMT)
From: Timothy Murphy <tim@maths.tcd.ie>
Cc: tex-k@cs.umb.edu
In-Reply-To: <9412080440.AA03948@tesla.psych.nyu.edu> from "Dan Karron" at Dec 7, 94 11:40:43 pm
X-Mailer: ELM [version 2.4 PL21]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2807
Message-Id: <9412081444.aa02207@hamilton.maths.tcd.ie>
>
> Anyone give any thought to some debugging vars in kpathsea ?
>
There are full debugging facilities in kpathsea.
These are easily accessed in dvips or xdvi (and probably dvilj)
by using the "-d" switch, eg
dvips -d-1 -P<printer> <filename>
will start full (probably too full) debugging.
There is a problem accessing the facility from web2c,
even after applying John Interrante's web2c.kpathsea-2.4.help patch.
However, the additional patch below was posted (not by me).
This allows the debugger to be turned on by setting an environment variable.
===========================================================
Date: Mon, 24 Oct 94 16:28 EDT
From: Neal Becker <neal@ctd.comsat.com>
To: tex-k@cs.umb.edu
Subject: New patch to pathsearch
Here is my latest patch. This one sets up kpathsea_debug using
environment variable KPSE_DEBUG, oring it with any setting by the
client application. Sounds like a win to me.
Also warnings are printed for any files that are not found. I don't
know if this will prove to be something that should be selectably
turned off or not. I'm assuming that most performance concerned
people will want to finally know why TeX is so slow. Maybe they will
now see why and fix it.
*** 1.1 1994/10/24 17:42:52
--- pathsearch.c 1994/10/24 20:17:50
***************
*** 323,333 ****
/* Search PATH for the first NAME. */
string
kpse_path_search P3C(const_string, path, const_string, name,
boolean, must_exist)
{
! string *ret_list = search (path, name, must_exist, false);
return *ret_list;
}
--- 323,349 ----
/* Search PATH for the first NAME. */
+ static int kpse_debug_env_init_done = 0;
+
+ void kpse_debug_env_init() {
+ char* c = getenv ("KPSE_DEBUG");
+ if (c)
+ kpathsea_debug |= atoi (c);
+ kpse_debug_env_init_done++;
+ }
+
string
kpse_path_search P3C(const_string, path, const_string, name,
boolean, must_exist)
{
! string *ret_list;
!
! if (!kpse_debug_env_init_done)
! kpse_debug_env_init();
!
! ret_list = search (path, name, must_exist, false);
! if (!*ret_list)
! fprintf (stderr, "kpathsea::search failed for %s\n", name);
return *ret_list;
}
***************
*** 338,344 ****
string *
kpse_all_path_search P2C(const_string, path, const_string, name)
{
! string *ret = search (path, name, true, true);
return ret;
}
--- 354,367 ----
string *
kpse_all_path_search P2C(const_string, path, const_string, name)
{
! string *ret;
!
! if (!kpse_debug_env_init_done)
! kpse_debug_env_init();
!
! ret = search (path, name, true, true);
! if (!*ret)
! fprintf (stderr, "kpathsea::search failed for %s\n", name);
return ret;
}
===========================================================